package com.eusun.design.chain;

public class ConsoleLogger extends AbstractLogger {

    public ConsoleLogger() {
        this(AbstractLogger.INFO);
    }

    public ConsoleLogger(int level) {
        this.level = level;
        setNextLogger(new FileLogger());
    }

    @Override
    public void write(String message) {
        System.out.println("Console logger: " + message);
    }
}
